import requests
def face_compare(API_key,API_secret,face_token1,face_token2):
    baseurl = 'https://api-cn.faceplusplus.com/facepp/v3/compare'
    payload = {
    'api_key':API_key,
    'api_secret':API_secret,
    'face_token1':face_token1,
    'face_token2':face_token2,  
    }
    r = requests.post(baseurl,params=payload)
    return r.json()